package com.backend.demo1.models;

import java.util.Date;


public class Match {

    private Long matchId; 
    private String opponentName; // 对手名称
    private String position; // 比赛位置（主/客）
    private Date matchDate; // 比赛日期
    private String knockoutTime; // 淘汰时间
    private String result; // 比赛结果
    private String firstHalfScore; // 上半场比分
    private String secondHalfScore; // 下半场比分
    private String firstHalfMyLost; // 上半场我方丢分
    private String firstHalfOpponentLost; // 上半场对手丢分
    private String firstHalfLostSets; // 上半场丢局数
    private String secondHalfMyLost; // 下半场我方丢分
    private String secondHalfOpponentLost; // 下半场对手丢分
    private String secondHalfLostSets; // 下半场丢局数
    // Getters and Setters
    public Long getMatchId() {
        return matchId;
    }

    public void setMatchId(Long matchId) {
        this.matchId = matchId;
    }

    public String getOpponentName() {
        return opponentName;
    }

    public void setOpponentName(String opponentName) {
        this.opponentName = opponentName;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getMatchDate() {
        return matchDate;
    }

    public void setMatchDate(Date matchDate) {
        this.matchDate = matchDate;
    }

    public String getKnockoutTime() {
        return knockoutTime;
    }

    public void setKnockoutTime(String knockoutTime) {
        this.knockoutTime = knockoutTime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getFirstHalfScore() {
        return firstHalfScore;
    }

    public void setFirstHalfScore(String firstHalfScore) {
        this.firstHalfScore = firstHalfScore;
    }

    public String getSecondHalfScore() {
        return secondHalfScore;
    }

    public void setSecondHalfScore(String secondHalfScore) {
        this.secondHalfScore = secondHalfScore;
    }

    public String getFirstHalfMyLost() {
        return firstHalfMyLost;
    }

    public void setFirstHalfMyLost(String firstHalfMyLost) {
        this.firstHalfMyLost = firstHalfMyLost;
    }

    public String getFirstHalfOpponentLost() {
        return firstHalfOpponentLost;
    }

    public void setFirstHalfOpponentLost(String firstHalfOpponentLost) {
        this.firstHalfOpponentLost = firstHalfOpponentLost;
    }

    public String getFirstHalfLostSets() {
        return firstHalfLostSets;
    }

    public void setFirstHalfLostSets(String firstHalfLostSets) {
        this.firstHalfLostSets = firstHalfLostSets;
    }



    public String getSecondHalfMyLost() {
        return secondHalfMyLost;
    }

    public void setSecondHalfMyLost(String secondHalfMyLost) {
        this.secondHalfMyLost = secondHalfMyLost;
    }

    public String getSecondHalfOpponentLost() {
        return secondHalfOpponentLost;
    }

    public void setSecondHalfOpponentLost(String secondHalfOpponentLost) {
        this.secondHalfOpponentLost = secondHalfOpponentLost;
    }

    public String getSecondHalfLostSets() {
        return secondHalfLostSets;
    }

    public void setSecondHalfLostSets(String secondHalfLostSets) {
        this.secondHalfLostSets = secondHalfLostSets;
    }

    // 内部类 Comment
    public static class Comment {
        private String matchId;
        private String author;
        private String content;
        private Date datetime;
        private String halfType; 


        // Getters and Setters
        public String getmatchId() {
            return matchId;
        }

        public void setmatchId(String matchId) {
            this.matchId= matchId;
        }

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public Date getDatetime() {
            return datetime;
        }

        public void setDatetime(Date datetime) {
            this.datetime = datetime;
        }
        public String getHalfType() {
            return halfType;
        }
    
        public void setHalfType(String halfType) {
            this.halfType = halfType;
        }
    }
}